package com.itheima02.day11;

import java.util.HashMap;

/**
 * @author 刘全
 * @date 2021/7/28
 */
public class HashMapDemo {
    public static  void main(String[] args) {
        Student stu1 = new Student("xiaoming", 23);
        Student stu2 = new Student("xiaohua", 22);
        Student stu3 = new Student("dahei", 23);
        HashMap<Student,String> hm = new HashMap<>();

        hm.put(stu1, "上海");
        hm.put(stu2, "北京");
        hm.put(stu3, "深圳");

    }
}
